package com.ruoyi.warehouseManagement.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.area.domain.Area;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仓库管理对象 t_warehouse
 * 
 * @author lh
 * @date 2024-10-28
 */
@Data
public class Warehouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 仓库ID (主键) */
    private Long id;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String warehouseNo;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String name;

    /** 仓库位置 */
    @Excel(name = "仓库位置")
    private String location;

    /** 仓库容量 */
    @Excel(name = "仓库容量")
    private String capacity;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 仓库描述 */
    @Excel(name = "仓库描述")
    private String description;

    /** 仓库类型 (0:标准仓库 1:危险品仓库 2:大型仓库 3:中型仓库 4:小型仓库 5:废品仓库) */
    @Excel(name = "仓库类型 (0:标准仓库 1:危险品仓库 2:大型仓库 3:中型仓库 4:小型仓库 5:废品仓库)")
    private Long warehouseStatus;

    /** 仓储费 */
    @Excel(name = "仓储费")
    private Long storageFee;

    /**
     * 仓库一对多库区
     */
    private List<Area> areas;


}
